﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shop.Model.Dto.Orders
{
    /// <summary>
    /// 订单评价
    /// </summary>
    public class OrderEvaluateDto
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public long OrderId { get; set; }

        public List<OrderEvaluateItems> items { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class OrderEvaluateItems
    {
        /// <summary>
        ///  图集(最多五张）
        /// </summary>
        public string[] Images { get; set; }

        /// <summary>
        /// 视频
        /// </summary>
        public string? Video { get; set; }

        /// <summary>
        /// 关联订单明细编号
        /// </summary>
        public int OrderItemId { get; set; }

        /// <summary>
        ///     分值(0-5数字)
        /// </summary>
        public int Score { get; set; }

        /// <summary>
        ///  评价文字
        /// </summary>
        [Required(ErrorMessage = "评价不可为空")]
        public string Content { get; set; }
    }
}
